Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / DrawPolygon Method / DrawPolygon(PointF[],Color,Single,Single[]) Method
An array of points specifying the polygon.
The line color.
The line width.
The dash pattern.

In This Topic
    DrawPolygon(PointF[],Color,Single,Single[]) Method
    In This Topic
    Draws a polygon specified by an array of points, using a specified line color, width and dash pattern.

    If the dashPattern array contains two or more items, the polygon is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.

    Syntax
    'Declaration
     
    Public Overloads Sub DrawPolygon( _
       ByVal points() As System.Drawing.PointF, _
       ByVal lineColor As System.Drawing.Color, _
       ByVal lineWidth As System.Single, _
       ByVal dashPattern() As System.Single _
    ) 
    public void DrawPolygon( 
       System.Drawing.PointF[] points,
       System.Drawing.Color lineColor,
       System.float lineWidth,
       System.float[] dashPattern
    )

    Parameters

    points
    An array of points specifying the polygon.
    lineColor
    The line color.
    lineWidth
    The line width.
    dashPattern
    The dash pattern.
    See Also